home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!milod
- From: milod@netcom.com (John DiCamillo)
- Subject: Re: Will JAVA kill C++?
- Message-ID: <milodDo7x6B.Aw2@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <31426210.1244@bhp.com.au> <1996Mar12.155442.1839@amc.com> <31462922.21F4A8BD@netcom.com> <4i68mo$ajp@soap.news.pipex.net>
- Date: Wed, 13 Mar 1996 18:10:59 GMT
- Sender: milod@netcom16.netcom.com
-
- Dirk Wessels <dirk@oxigen.demon.co.uk> writes:
- >Adam Megacz <kalessin@netcom.com> wrote:
- >>Curtis Green wrote:
- >>
- >>> code reliablity is more a function of programmer ability than language
- >>> features. I agree that C++ is woefully missing garbage collection but
- >>> you can pick up class libraries with those features. A lousy programmer can
- >>> write lousy programs in any language.
- >>
- >>Amen. Also, I believe that every feature in Java can be had in C++
- >>merely by adding class libraries and choosing not to use pointers. As
- >>for the bytecode stuff, ANDF works just fine for C++. Does anyone know
- >>of a feature in Java that C++ can't do (w/o some extra source code)? I'd
- >>like to know!
-
- Uh, create web applets that run in Netscape?
-
- >I think you are both missing the point here.
- >Java works with references, just like Delphi and Smalltalk.
- >C++ works with actual addresses, which do not necessary point to
- >objects but also to strings, booleans or start of an array.
- >Since any addess may point to something unknown, you can not have
- >safe garbage collection.
- >The only thing to perform garbage collection in C++ is to use classes
- >that handle the references instead of pointers. This is much slower,
- >can still easily be misused. And are often not fully functional
- >(reference counting).
- >Garbage collecting is as good in C++ as in C and Assembler!!
-
- Depending on what you mean by "in C++", this is not correct.
- It is possible to buy (or just download) conservative GC
- libraries that work with both C and C++. Of course, these
- libraries are not written completely in C++, in the sense
- that they include embedded assembly code to access the
- machine stack.
-
- --
- ciao,
- milo
- ================================================================
- John DiCamillo Fiery the Angels Fell
- milod@netcom.com Deep thunder rode around their shores
-